Skip to content

Define contents_of() and owner_of() functions for -Ql and -Qo, respec…#7

Open
mattalxndr wants to merge 2 commits intopeakwinter:masterfrom
mattalxndr:pr
Open

Define contents_of() and owner_of() functions for -Ql and -Qo, respec…#7
mattalxndr wants to merge 2 commits intopeakwinter:masterfrom
mattalxndr:pr

Conversation

@mattalxndr
Copy link

…tively

return ret


def pacman(flags, targets=[], eflgs=[], pacman_bin=__PACMAN_BIN):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed pkgs parameter to targets, since it also now holds file paths (owner_of())

ret[package].append(file)

if type(packages) == str:
return ret[packages] if packages in ret else None
Copy link
Author

@mattalxndr mattalxndr Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returns a single file list if passed a single package as a string. If passed a list of packages (even if the list contains just one element), the result will be grouped by package name.

The other new function contains a similar functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant